Skip to content

Conversation

@vweevers
Copy link
Member

Using tempy to generate random temporary directories results in unix domain socket names that are too long (104 bytes is the max on Mac) which manifests itself as EADDRINUSE errors (discovered in #3). So replace tempy with a simple alternative.

Also expands the CI test matrix, adding Node.js 18 and Windows and Mac, to test platform differences in the handling of sockets.

@vweevers vweevers added the test Improvements or additions to tests label Jul 10, 2022
Using `tempy` to generate random temporary directories results in
unix domain socket names that are too long (104 bytes is the max
on Mac) which manifests itself as EADDRINUSE errors. So replace
`tempy` with a simple alternative.

Also expands the CI test matrix, adding Node.js 18 and Windows and
Mac, to test platform differences in the handling of sockets.
@vweevers
Copy link
Member Author

@juliangruber OK, ditched tempy.

@vweevers vweevers changed the title Fix random CI failures on Mac Fix random test failures on Mac Jul 10, 2022
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@vweevers vweevers merged commit 37579af into main Jul 10, 2022
@vweevers vweevers deleted the fix-mac-ci branch July 10, 2022 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Improvements or additions to tests

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants